package Thread;

import java.util.Scanner;

public class ReverseCountDemo {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入数字：");
        int n=scan.nextInt();
        for(int i=n;i>0;i--){
            System.out.println(i);
            try{
                Thread.sleep(1000);
            }
            catch(InterruptedException e){

            }
        }
        System.out.println("倒计时结束！");
    }
}
